package com.sailfish.springbootdemo.service.db1;

import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.BrandType;

import java.util.List;

public interface BrandTypeService {

    List<BrandType> getAllBrandType(String searchValue, Integer brandId);

    BrandType getBrandTypeById(Integer brandTypeId);

    /**
     * 删除
     *
     * @param brandTypeId
     * @return
     */
    Result deleteBrandTypeById(Integer brandTypeId);

    /**
     * 新增或者修改
     *
     * @param mode
     * @param brandType
     * @return
     */
    Result addOrUpdateBrandType(String mode, BrandType brandType);
}
